package cn.funnyxb.powerremember.db.tables;

import android.database.Cursor;
import cn.funnyxb.tools.appFrame.database.DBHolder;
import cn.funnyxb.tools.appFrame.database.DBService;
import cn.funnyxb.tools.appFrame.database.TableHolder;

public class Tbholder_wordsbaseinfo extends TableHolder
{
  private boolean inited = false;

  public Tbholder_wordsbaseinfo(DBHolder paramDBHolder)
    throws Exception
  {
    super(paramDBHolder, "wordbaseinfo");
    if (this.inited)
      throw new Exception("has inited!");
    this.inited = true;
  }

  public void insertARecord(String paramString1, String paramString2, int paramInt, String paramString3)
  {
    DBService localDBService = this.dbHolder.getDbService();
    Object[] arrayOfObject = new Object[4];
    arrayOfObject[0] = paramString1;
    arrayOfObject[1] = paramString2;
    arrayOfObject[2] = Integer.valueOf(paramInt);
    arrayOfObject[3] = paramString3;
    localDBService.execSql("insert into wordbaseinfo(name,intro,wordcount,tableextname) values(?,?,?,?)", arrayOfObject);
  }

  public Cursor queryBaseName(String paramString)
  {
    DBService localDBService = this.dbHolder.getDbService();
    String[] arrayOfString = new String[1];
    arrayOfString[0] = paramString;
    return localDBService.query("select * from wordbaseinfo where name=?", arrayOfString);
  }

  public void removeWordBaseInfo(String paramString1, String paramString2)
  {
    String str1 = "delete from wordbaseinfo where name='" + paramString1 + "'";
    this.dbHolder.getDbService().execSql(str1);
    if (paramString2 == null);
    while (true)
    {
      return;
      String str2 = "drop table if EXISTS " + paramString2;
      this.dbHolder.getDbService().execSql(str2);
    }
  }
}

/* Location:           E:\Desktop\复件 classes_dex2jar.jar
 * Qualified Name:     cn.funnyxb.powerremember.db.tables.Tbholder_wordsbaseinfo
 * JD-Core Version:    0.5.3
 */